package scene;

import raytracer.Vector3f;

/// A class representing a 3D point light source.
public class DirectionalLight extends AbstractLight {
	public Vector3f dir;

	// / Create a light source at the origin with white color.
	public DirectionalLight() {
		super();
	}

	// / Create a light source with the given position and color.
	public DirectionalLight(float x, float y, float z, Color newColor) {
		super(0, 0, 0, newColor);
		this.dir = new Vector3f(x, y, z).normalizeLocal();
	}

	@Override
	public String toString() {
		return ">" + dir + " c" + color;
	}

}
